import request from '@/utils/request'

const api_name = '/admin/order/orderInfo'

// 订单统计
export const GetOrderStatisticsData = searchObj => {
  return request({
    url: `${api_name}/getOrderStatisticsData`,
    method: 'get',
    params: searchObj,
  })
}

// 订单列表
// export const selectAllOrder = data => {
//   return request({
//     url: `${api_name}/selectAllOrder`,
//     method: 'post',
//     data: data
//   })
// }

//修改状态(待发货)
export function updateOrderStatus(id) {
  return request({
    url: `${api_name}/updateStatus`,
    method: 'get',
    params: {
      id: id
    }
  })
}

export function selectOrder(data) {
  return request({
    url: `${api_name}/selectOrder`,
    method: 'post',
    data
  })
}
